package generator;

import generator.Generator;
import generator.MyAnnotation;
import generator.meta.ClassMeta;
import generator.meta.FieldMeta;
import generator.meta.MavenInfoMeta;
import generator.util.JsUIUtils;
import generator.util.PackageScan;

import java.lang.reflect.Field;
import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * User: sunguangzhu
 * Date: 13-8-9
 * Time: 上午9:23
 * To change this template use File | Settings | File Templates.
 */
public class PomGenerator extends Generator {
    public void generate(String projectName) throws Exception {
        MavenInfoMeta mavenInfoMeta = new MavenInfoMeta();
        mavenInfoMeta.setGroupId(projectName);
        mavenInfoMeta.setArtifactId(projectName);
        mavenInfoMeta.setName(projectName);
        mavenInfoMeta.setPackaging("war");
        mavenInfoMeta.setVersion("1.0-SNAPSHOT");
        Map root = new HashMap();
        root.put("bean", mavenInfoMeta);
        super.generatePom(root, "pom");
    }

}
